#include <base.h>
#include "scheme.h"


void exampleGeneratedFunction(void)
{
	SymbolEntry* symEntry = NULL ;
	SchemeObject* a;
	a= makeSchemeInt(1);

	// (if #f () 100)
	machine.reg[RES] = schemeFalse ; // code generation for #t
	if (sobIsFalse(machine.reg[RES])) goto label_else ;
		machine.reg[RES] = schemeNil ; // code generation for ()
		goto if_finished ;
	label_else:
		machine.reg[RES] = makeSchemeInt(100) ; // code generation for 100
	if_finished:

	// (begin #t #t () 1)
	machine.reg[RES]=schemeTrue;
	machine.reg[RES]=schemeTrue;
	machine.reg[RES]=schemeNil;
	machine.reg[RES]= makeSchemeInt(1);



	// y
	symEntry = getSymbol("y") ;
	symEntry->sob = a;
	DEBUG_TRACE("name = %s", symEntry->name) ;
	machine.reg[0] = probeForSymbol("y") ;
	RUNTIME_ASSERT(machine.reg[0] != NULL) ;

}
